package com.itheima.common;



public class ThreadLocalUtil {
    /**
     * 创建一个对象
     */
    private static ThreadLocal<String > threadLocal=new ThreadLocal<>();

    public static void setId(String id){
        threadLocal.set(id);
    }
    public static String  getId(){
        return threadLocal.get();
    }
}
